﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Messages.Connection
{
    public class SelectedServerDataMessage : NetworkMessage
    {
        public SelectedServerDataMessage(short serverId, string adress, short port,
                                            bool canCreateCharacter, string ticket)
            : base(NetworkMessageID.SelectedServerDataMessage)
        {
            base.WriterBuffer.writeShort(serverId);
            base.WriterBuffer.writeUTF(adress);
            base.WriterBuffer.writeShort(port);
            base.WriterBuffer.writeBoolean(canCreateCharacter);
            base.WriterBuffer.writeUTF(ticket);
        }
    }
}
